package com.tang.model.mouse.core;

import lombok.Data;

import java.lang.reflect.Method;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/7 21:19
 * @Desc
 * @Remarks
 */
//触发事件
@Data
public class Event {

    private Object source;

    private EventListener target;

    private String trigger;

    private Method fallback;

    private Long time;

    public Event(Object source, EventListener target, String trigger, Method fallback) {
        this.source = source;
        this.target = target;
        this.trigger = trigger;
        this.fallback = fallback;
    }

    public Event(EventListener target, String trigger, Method fallback) {
        this.target = target;
        this.fallback = fallback;
    }
}
